<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddBannerDetailImgCouponPackage extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('coupon_package', function (Blueprint $table) {
            $table->string('bannerImg', 120)->default('')->comment('banner图片')->after('miniAdvPopImg');
        });

        Schema::table('coupon_package', function (Blueprint $table) {
            $table->string('detailImg', 120)->default('')->comment('券包详情图片')->after('bannerImg');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('coupon_package', function (Blueprint $table) {
            $table->dropColumn('bannerImg');
            $table->dropColumn('detailImg');
        });
    }
}
